import { videoRef } from "../VideoPlayer/store";
export const posterUrlModule = ref<any>("");
export const visible = ref(false);
export const is_closeModal = ref(false);
watch(
  () => visible.value,
  (newValState) => {
    if (newValState === false) {
      videoRef.value.currentTime = 0;
    }
  }
);
export const options = reactive({
  width: "100%",
  height: "100%",
  color: "#409eff",
  title: "",
  src: "",
  muted: false,
  webFullScreen: false,
  speedRate: ["0.75", "1.0", "1.25", "1.5", "2.0"],
  autoPlay: false,
  loop: false,
  mirror: false,
  ligthOff: false,
  volume: 0.3,
  control: true,
  controlBtns: [
    "audioTrack",
    "quality",
    "speedRate",
    "volume",
    "setting",
    "pip",
    "pageFullScreen",
    "fullScreen",
  ],
  poster: posterUrlModule.value,
});
export const uniClass = randomString();
